#define _CRT_SECURE_NO_WARNINGS 1

#include"1.h"

void Stack::Init(int capacity)
{
	_a = (int*)malloc(sizeof(int) * capacity);
	if (_a == nullptr)
	{
		perror("malloc");
		return;
	}
	_Top = 0;
	_capacity = capacity;
}